package j2024.j202408;

import java.util.*;

public class j0807 {
    public static void main1(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n+1];
        for (int i = 1; i <= n; i++) {
            arr[i] = i;
        }
        int left = 1,right = n;
        while(left<right){
            System.out.print(arr[left]+" ");
            left++;
            System.out.print(arr[right]+" ");
            right--;
        }
        System.out.print(arr[right]+" ");
    }

    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();
        int[] narr = new int[n];
        int[] marr = new int[m];
        for (int i = 0; i < n; i++) {
            narr[i] = in.nextInt();
        }
        for (int i = 0; i < m; i++) {
            marr[i] = in.nextInt();
        }
        Arrays.sort(narr);
        Arrays.sort(marr);
        List<Integer> list = new ArrayList<>();
        int ni = 0,mi = 0;
        while(ni<n && mi<m){
            if(narr[ni]<marr[mi]){
                list.add(narr[ni]);
                ni++;
            }else if(narr[ni]>marr[mi]){
                list.add(marr[mi]);
                mi++;
            }else {
                list.add(narr[ni]);
                ni++;
                mi++;
            }
        }
        while(ni<n){
            list.add(narr[ni]);
            ni++;
        }
        while(mi<m){
            list.add(marr[mi]);
            mi++;
        }
        for (int i = 0; i < list.size()-1; i++) {
            System.out.print(list.get(i)+" ");
        }
        System.out.print(list.get(list.size()-1));
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.next();
        char[] ch = str.toCharArray();
        Map<Character,Integer> map = new HashMap<>();
        for (int i = 0; i < ch.length; i++) {
            map.put(ch[i], map.getOrDefault(ch[i],0)+1);
        }

    }
}
